﻿namespace CRM.Database.Model
{
    public partial class CustomersProductSystems : IGetKeyValue
    {
        #region Implementation of IGetKeyValue

        /// <summary>
        /// Получение ключего значения элемента
        /// </summary>
        /// <returns>Ключевое значение</returns>
        public int GetKeyValue()
        {
            return IdCustomersProductSystem;
        }

        #endregion

        /// <summary>
        /// локализованное имя
        /// </summary>
        public string ProductSystemNameLocalized
        {
            get { return ProductSystems == null ? " " : ProductSystems.LocalizedName; }
        }

        /// <summary>
        /// 
        /// </summary>
        public string ProductMarkExt
        {
            get
            {
                if (ProductSystems == null) return " ";
                return ProductSystems.ProductMarks != null ? ProductSystems.ProductMarks.ProductMark : " ";
            }
        }
    }
}